/* 
 *  File: Hotel.java
 *  Author: Edson Pereira
 *  Version: 1.0
 *  Date: 02/10/2011
 *  
 *  Oracle Certified Master Java SE 6 Developer
 *  
 *  This class is part of Java Developer Assignment CX-310-252A_1
 */
package suncertify.domain;

/**
 * A Hotel object is a transfer value object to keep hotel information
 *
 * @author Edson Pereira
 * @version 1.0
 * @see Accommodation
 */
class Hotel{

    private static final String SEPARATOR = "; "; 
    
    /*
     *  Private members declaration
     */
    private String name;
	private String city;
    
	/**
	 * Creates an instance of Hotel transfer data
	 * 
	 * @param name The name of Hotel
	 * @param city The name of city where Hotel is locate
	 */
	Hotel(String name, String city){
	    this.name = name;
		this.city = city;
	}
    
    /**
     * Gets Hotel name
     * 
     * @return A Hotel name
     */
    public String getName(){
        return this.name;
    }
    
    /**
     * Sets Hotel name
     * 
     * @param name Hotel name 
     */
    public void setName(String name){
        this.name = name;
    }
    
    /**
     * Gets city location
     * 
     * @return A city where Hotel is located
     */
    public String getCity(){
        return this.city;
    }
    
    /**
     * Sets city location 
     * 
     * @param city City name where Hotel is located
     */
    public void setCity(String city){
        this.city = city;
    }

    /**
     * Returns A {@String} that representation of the Hotel class
     *
     * @return A {@String} that representation of the Hotel class
     */
    public String toString(){
        String hotelString = this.name + SEPARATOR + this.city;
        return hotelString;
    }
}